<!DOCTYPE html>
<html>
<head>
    <style>
        .container {
            display: flex;
            height: 100vh;
        }

        .left, .right {
            min-width: 100px;
            background: #eee;
            padding: 20px;
        }

        .middle {
            flex: 1;
            display: flex;
            background: pink; /* 自适应粉色背景 */
        }

        .resize-container {
            display: flex;
            width: 100%;
        }

        .resizable {
            position: relative;
        }

        .red {
            background: #ff6666;
            width: 200px; /* 初始宽度 */
            resize: horizontal;
            overflow: auto;
        }

        .gray {
            background: #cccccc;
            flex: 1;
            min-width: 100px;
            resize: horizontal;
            overflow: auto;
        }

        /* 隐藏默认resize手柄（可选） */
        .red::-webkit-resizer, .gray::-webkit-resizer {
            background: transparent;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="left">动力</div>

    <div class="middle">
        <div class="resize-container">
            <div class="resizable red"></div>
            <div class="resizable gray"></div>
        </div>
    </div>

    <div class="right">右边</div>
</div>
</body>
</html>